package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.entity.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 *  小程序商品详情Vo
 *
 */
@NoArgsConstructor
@Data
public class WxGoodsDetailVo {

    // 当前商品的所有规格列表
    private List<SpecificationListDTO> specificationList;

    // 团购活动列表
    private List<GroupOn> groupon;

    // 帮助列表
    private List<Issue> issue;

    // 用户参考图片的个数，如果商品图片不唯一，就是1
    // 否则就是0
    private Integer userHasCollect;

    // 分享图片
    private String shareImage;

    // 评价列表
    private CommentDTO comment;

    // 评价是否包含图片
    private Boolean share;

    // 商品参数列表
    private List<GoodsAttribute> attribute;

    // 商品品牌
    private Brand brand;

    // 商品产品列表
    private List<GoodsProduct> productList;

    // 商品表中的商品信息
    private Goods info;

    public WxGoodsDetailVo(List<SpecificationListDTO> specificationList, List<GroupOn> groupon, List<Issue> issue, Integer userHasCollect, String shareImage, CommentDTO comment, Boolean share, List<GoodsAttribute> attribute, Brand brand, List<GoodsProduct> productList, Goods info) {
        this.specificationList = specificationList;
        this.groupon = groupon;
        this.issue = issue;
        this.userHasCollect = userHasCollect;
        this.shareImage = shareImage;
        this.comment = comment;
        this.share = share;
        this.attribute = attribute;
        this.brand = brand;
        this.productList = productList;
        this.info = info;
    }

}
